﻿<%@ Page Title="" Language="C#" MasterPageFile="~/companypart/CompanyMastermaster.master" AutoEventWireup="true" CodeFile="~/companypart/mysetting.aspx.cs" Inherits="mysetting" EnableEventValidation="false"  meta:resourcekey="PageResource1" culture="auto" uiculture="auto"  %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/MediaControl.ascx" TagName="MediaControl" TagPrefix="mc" %>

<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>الاعدادات</title>
    
<script type="text/javascript">
    function uploadError(sender, args) {
        var result = document.getElementById("<%= results.ClientID %>");
        result.value = "يوجد خطأ فى التحميل";
    }

    function uploadStarted(sender, args) {

        var fileName = args.get_fileName();
        //alert(fileName);


        var fileExtension = fileName.substring(fileName.lastIndexOf('.') + 1);

        if (!(fileExtension == 'swf')) {
            alert("swf الامتدادات المسموحة ");

           
            ifIgnoreError = true;
            {
                 sender._stopLoad();
               
            }

        }


    }


    function uploadComplete(sender, args) {
        var contentType = args.get_contentType();
        var text = args.get_length() + " bytes";
        // alert(contentType);
        if (contentType.length > 0) {
            text += ", '" + contentType + "'";

        }
        var result = document.getElementById("<%= results.ClientID %>");
        result.value = text;
    }
    </script>
   
    <style type="text/css">
    tr .tabbone4{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px; 
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:right;
	
}
.adel4{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  right;
}
         .zr3 {
	background-image:url('../images/button2.png');
	display:block;
	float:right;
	 padding: 0px 10px 0px 10px;
	height:21px;
	text-align:center;
	color:#fff;
	text-shadow:1px 1px 0px #003a5e;
	margin-right:2px;
	line-height:19px;
	font-weight:bold;
	text-decoration:none;
	font-family:Tahoma;
	font-size:12px;


}
.zr3:hover ,.zr3:active {
	background-image:url('../images/button2.png');
	text-shadow:1px 1px 0px #003a5e;
	background-position:0px -21px;
	
}
  .stylelabel3
       {
       	color:#064c66;
	 font-weight:bold;
	 direction:rtl;
	 text-align:right;
       	}
             .tab3{
	width:815px;
 direction:rtl;
 border:1px #ccc solid;
 border-radius:5px;
 }

tr .tabbone3{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:center;
	
}
 .req3
       {
           color:Red;
       } 
.adel3{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  center;
}
.he3{
	background-color:#fff;
	padding:5px;
	font-family:Tahoma;
	font-size:14px;
	font-weight:bold;
}
.txt3
{
    border:1px solid black;
    }
        .jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -300px;
    width: 800px;
    
    background-color: #EEE;
    color: #333;
    border: 1px solid black;
    padding: 12px;
}

        .lok
     {
	display: none;
	color: red;
     }
       
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
    
<div class="jqmWindow22" id="dialog" dir="rtl" style="width:600px" >

<a href="#" class="jqmClose" style="background-image:url('images/close.png');
	 width:39px;
	 height:40px;
	  background-repeat:no-repeat;
	  display:block;
	  float:left;	"></a>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <br />
    <table width="100%"> 
    <tr>
    <td>
        <asp:Label ID="Label4" CssClass="stylelabel3" runat="server" 
            Text="اخترملف اللافتة " meta:resourcekey="Label4Resource1"></asp:Label>
    </td>
     <td dir="ltr">
      <asp:AsyncFileUpload ID="AsyncFileUpload1"  
            OnClientUploadError="uploadError" OnClientUploadComplete="uploadComplete" 
            runat="server"    Width="400px" UploaderStyle="Modern"  
            UploadingBackColor="#CCFFFF" ThrobberID="myThrobber" 
             OnClientUploadStarted="uploadStarted" FailedValidation="False" 
             meta:resourcekey="AsyncFileUpload1Resource1" />
              <asp:Label runat="server" ID="myThrobber" Style="display: none;" 
                         meta:resourcekey="myThrobberResource1"> <img align="middle" alt="" src="../uploading.gif" /> </asp:Label>
    </td>
    </tr>
    <tr>
     <td>
    </td>
     <td>
     <asp:Label ID="results"  CssClass="req" runat="server" meta:resourcekey="resultsResource1" 
                ></asp:Label>
    </td>
    </tr>
    <tr>
    <td>
    </td>
    <td>

        <asp:Button ID="SaveButton" CssClass="zr3" runat="server" onclick="SaveButton_Click" 
            Text="حفظ" meta:resourcekey="SaveButtonResource1" />

    </td>
    </tr>
    </table>
         

                          
         </ContentTemplate>   
         <Triggers> 
   <asp:PostBackTrigger ControlID="SaveButton" /> 
</Triggers> 
          </asp:UpdatePanel>

</div>



    
</asp:Content>

